home *** CD-ROM | disk | FTP | other *** search
- Path: news.production.compuserve.com!news
- From: Tal Garfinkel <73400.667@CompuServe.COM>
- Newsgroups: comp.lang.c
- Subject: Re: Question!@#!
- Date: 18 Jan 1996 19:09:27 GMT
- Organization: CompuServe, Inc. (1-800-689-0736)
- Message-ID: <4dm5t7$t93$2@mhafc.production.compuserve.com>
- References: <DLBGw1.CpA@news.cern.ch>
-
- I have created a program that asks THE users for his name, then
- writes it
- >to a file, the file is called name.txt..
- >
- >Evertime this program is executed, the file name.txt get's
- overwritten.
- >
- >How can i keep this file, name.txt, so that i can eventually
- have a
- >listing of all users who ran my program???
- >
- >Appreciated..
-
- no problem,
- you are probably opening your file in write mode with
- like fopen(fp, "w") when you should be opening it in append mode
- with fopen(fp,"a") look up fopen in a C book for more details.
-
- simple solution is to switch to VAX/VMS. A new 'name.txt'
- file will have a different version number in its file system.
-
- Accept then you would have to use the Vomit Making System(VMS)
- the most God forsaken waste of code known to man.
- (sorry I couldnt resist)
-